package com.neusoft.modules.web.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sun.xml.internal.bind.v2.model.core.ID;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("chunk_info")
public class ChunkInfoEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.INPUT)
    private String id;

    /**
     * 当前文件块，从1开始
     */
    private Integer chunkNumber;

    /**
     * 当前分块大小
     */
    private Long currentChunkSize;


    /**
     * 文件名
     */
    private String fileName;

    /**
     * md5
     */
    private String identifier;

    /**
     * 总大小
     */
    private Long totalSize;

    /**
     * 总块数
     */
    private Integer totalChunks;
}
